package test;

import java.lang.reflect.Field;

public class Classy {

	
	public void doit(String className) throws Exception{
		Class clazz=Class.forName(className);
	 Object o=clazz.newInstance();
	 Field[] fx=clazz.getDeclaredFields();
	 for(Field f:fx){
		 System.out.println(f.getName());
	 }
	}
	
	
	public static void main(String arg[]){
		try {
			new Classy().doit("form.loginform");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
